package com.budwk.app.sqfwDoc.codeGeneratorV2.config;

import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ZY.Wang
 * @since 2024/1/10
 * <p>
 * 需要创建什么excel，哪些excel需要生成模板或者文件都是在这里进行配置
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ExcelCreateConfig {

    @ApiModelProperty(description = "需要生成的文件标识(名称 code)")
    private String fileIdentity;

    @ApiModelProperty(description = "是否生成excel 比如，只是判断能够生成excel但是不去生成excel")
    private Boolean createExcelFileFlag = true;

    @ApiModelProperty(description = "是否只生成模板文件标识")
    private Boolean onlyGenerateTemplateFlag = false;

    @ApiModelProperty(description = "列表数据就是最后一行")
    private Boolean listAtLastRowFlag = false;

    @ApiModelProperty(description = "excel行高 如果有特殊需求 从excel模板文件中查看行高")
    private Integer rowHeight = 55;

    @ApiModelProperty(description = "是否返回web路径")
    private Boolean returnWebUrlFlag = true;
}
